@extends('admin::layouts.master')

@section('content')


    <form action="{{route('article.store')}}" method="post">
        @csrf
            <div class="card">
                <div class="card-header">
                    发布文章
                </div>
                <div class="card-body">
                    <div class="form-group">
                        <label>文章标题</label>
                        <input type="text" class="form-control" name="title" placeholder="请输入文章标题">
                    </div>
                    <div class="form-group">
                        <label>文章作者</label>
                        <input type="text" class="form-control" name="author" placeholder="请输入文章作者">
                    </div>

                    <div class="form-group">
                        <label>文章内容</label>
                        <textarea class="form-control" name="content" rows="8"></textarea>
                    </div>

                    <div class="form-group">
                        <label>点击数</label>
                        <input type="number" class="form-control" name="click" placeholder="请输入文章的点击数">
                    </div>

                    <div class="form-check">
                        <input type="checkbox" class="form-check-input" value="1" name="is_commend">
                        <label class="form-check-label">是否推荐</label>
                    </div>
                </div>
                <div class="card-footer text-muted">
                    <button type="submit" class="btn btn-primary" style="width: 80px">发布</button>
                </div>
            </div>
    </form>
@endsection
